package com.kl.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2021-10-30
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("line")
@ApiModel(value="Line对象")
public class Line implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "线路id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "起点")
    private String statrAddress;

    @ApiModelProperty(value = "终点")
    private String endAddress;

    @ApiModelProperty(value = "发车时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date statrTime;

    @ApiModelProperty(value = "所经过的站点数量")
    private Integer siteCount;

    @ApiModelProperty(value = "线路长度")
    private Long lineLength;

    @ApiModelProperty(value = "线路预计多久能到(小时)")
    private Long lineTime;

    @ApiModelProperty(value = "线路经历那些城市")
    private String lineCity;
}
